package com.lions;

import static org.junit.Assert.*;
import org.junit.Test;

import com.lions.client.model.Type;

/**
 * Comment.
 * @author Brad
 *
 */
public class Module {
	/**
	 * The module to use for testing.
	 */
	private com.lions.client.model.Module module1;
	/**
	 * Module to use for testing.
	 */
	private com.lions.client.model.Module module2;
	/**
	 * String to construct and test modules.
	 */
	private String moduleString = new String("AIRLOCK|USABLE|0|0|0|0");
	/**
	 * Copy Constructor Test.
	 * Tests whether the module deep copy constructor works.
	 */
	@Test
	public final void constructorTest0() {
		module1 = new com.lions.client.model.Module(moduleString);
		module2 = new com.lions.client.model.Module(module1);
		assertTrue(module1.equals(module2));
	}
	/**
	 * String Constructor Test.
	 * Tests whether the module deep copy constructor works.
	 */
	@Test
	public final void constructorTest1() {
		module1 = new com.lions.client.model.Module(moduleString);
		module2 = new com.lions.client.model.Module(moduleString);
		assertTrue(module1.equals(module2));
	}
	/**
	 *To string test.
	 */
	@Test
	public final void toStringTest0() {
		module1 = new com.lions.client.model.Module(moduleString);
		assertTrue(module1.toString().equals(moduleString));
	}

}
